import request from '@/utils/request'

// 查询支付流水列表
export function listPaymentlog(query) {
  return request({
    url: '/shop/paymentlog/list',
    method: 'get',
    params: query
  })
}

// 查询支付流水详细
export function getPaymentlog(id) {
  return request({
    url: '/shop/paymentlog/' + id,
    method: 'get'
  })
}

// 新增支付流水
export function addPaymentlog(data) {
  return request({
    url: '/shop/paymentlog',
    method: 'post',
    data: data
  })
}

// 修改支付流水
export function updatePaymentlog(data) {
  return request({
    url: '/shop/paymentlog',
    method: 'put',
    data: data
  })
}

// 删除支付流水
export function delPaymentlog(id) {
  return request({
    url: '/shop/paymentlog/' + id,
    method: 'delete'
  })
}
